package com.ahu.qifei.fund.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

@AllArgsConstructor
@Getter
public enum ResultEnum{

    // 统一结果返回码
    SUCCESS(2000, "成功"),

    FAIL                    (4000, "请求失败"),
    INVALID_PARAM           (4001, "请求参数为空或者非法"),
    AUTH_ERROR              (4003, "认证失败"),


    SERVER_ERROR            (5000, "服务器内部错误"),


    ;



    private Integer code;

    private String message;

}
